package main

import (
	"fmt"
	"go.uber.org/zap"
	"shop_api/global"
	"shop_api/initialize"
)

func main() {

	initialize.InitLogger()
	initialize.InitConfig()
	route := initialize.InitUserRoute()

	initialize.InitSrvConn() //负载均衡连接服务端
	//initialize.InitSrvClient() //连接服务端

	err := route.Run(fmt.Sprintf(":%d", global.ServiceConfig.Port))
	if err != nil {
		zap.S().Panic("userApi启动失败：", err)
	}
}
